clear all
set maxvar 5000

*set scheme plotplain
cd "/Users/tg2778/Dropbox/0_Reviews_RnRs/072022_JOP_Roads/v3_JOP/Replication - Roads"
log using "4_Log/5_ConnectivityPanel.log"

use "1_Data/AC_pre-delim_dataset.dta", clear
hist totalvillconn, freq xtitle("Total Connectivity") ytitle("Frequency") name(acpre) xlabel(0(10)80) ylabel(0(100)500)  title("State constituency pre-delim")

use "1_Data/AC_post-delim_dataset.dta", clear
hist totalvillconn, freq xtitle("Total Connectivity") ytitle("Frequency") name(acpost) xlabel(0(10)80) ylabel(0(100)500) title("State constituency post-delim")

use "1_Data/PC_pre-delim_dataset_select.dta", clear
hist totalvillconn, freq xtitle("Total Connectivity") ytitle("Frequency") name(pcpre) xlabel(0(10)80) ylabel(0(20)120) title("National constituency pre-delim")

use "1_Data/PC_post-delim_dataset_select.dta", clear
hist totalvillconn, freq xtitle("Total Connectivity") ytitle("Frequency") name(pcpost) xlabel(0(10)80) ylabel(0(20)120) title("National constituency post-delim")

graph combine acpre acpost pcpre pcpost, rows(2)
graph export "3_Figs/Fig1.pdf", as(pdf) replace
log close
